package com.example.api.properties;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "logistics")
public class LogisticsProperties implements InitializingBean {

    private String secretKey;

    public static String SECRET_KEY;

    @Override
    public void afterPropertiesSet() throws Exception {
        SECRET_KEY = secretKey;
    }

}
